﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace CoolCode.Bracket.LinqToSql.Entities
{
    [Table(Name = "dbo.sys_Log")]
    public partial class Log : EntityBase
    {
        private int _iD;

        [Column(DbType = "Int NOT NULL IDENTITY ", IsPrimaryKey = true, IsDbGenerated = true)]
        public int ID
        {
            get { return _iD; }
            set { _iD = value; }
        }

        private DateTime _time;

        [Column(CanBeNull = false)]
        public DateTime Time
        {
            get { return _time; }
            set { _time = value; }
        }

        private string _user;

        [Column(CanBeNull = false)]
        public string User
        {
            get { return _user; }
            set { _user = value; }
        }

        private string _type;

        [Column(CanBeNull = false)]
        public string Type
        {
            get { return _type; }
            set { _type = value; }
        }

        private string _name;

        [Column(UpdateCheck = UpdateCheck.Never)]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _desc;

        [Column(UpdateCheck = UpdateCheck.Never)]
        public string Desc
        {
            get { return _desc; }
            set { _desc = value; }
        }

        private string _path;

        [Column(UpdateCheck = UpdateCheck.Never)]
        public string Path
        {
            get { return _path; }
            set { _path = value; }
        }

        private string _from;

        [Column(UpdateCheck = UpdateCheck.Never)]
        public string From
        {
            get { return _from; }
            set { _from = value; }
        }

    }
}
